<template>
  <div class="search-header">
    <div class="input-field">
      <i class="iconfont">&#xe601;</i>
      <input type="text" :value="$route.meta.title">
    </div>
    <div class="login">
      <span>登录/注册</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SearchHeader',
  created () {
    console.log(this)
  },
  methods: {
    backHandler () {
      // 编程式导航实现后退
      this.$router.back()
    }
  }
}
</script>

<style lang="scss" scoped>
  .search-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 44px;
    font-size: 16px;/*no*/
    border-bottom: 1px solid #f5e9e9;
    .input-field{
      width: 260px;
      height: 32px;
      border: 2px solid #ff0404;/*no*/
      border-radius: 16px;
      padding-left: 10px;
      display: flex;
      align-items: center;
      i{
        margin-right: 8px;
        font-size: 17px;/*no*/
        color: #ff0404;
      }
      input{
        width: 105px;
        border: none;
        background: #fff;
        font-size: 14px;/*no*/
      }
    }
    .login{
      width: 56px;
      height: 32px;
      font-size: 10px;/*no*/
      border: 1px solid #ff0404;
      border-radius: 6px;
      line-height: 32px;
      text-align: center;
      color:#e62e4c ;
    }
  }
</style>
